import request from '@/utils/request'

// 查询排班规则列表
export function listSkdRule(query) {
  return request({
    url: '/sms/skdRule/list',
    method: 'get',
    params: query
  })
}

// 查询排班规则详细
export function getSkdRule(id) {
  return request({
    url: '/sms/skdRule/' + id,
    method: 'get'
  })
}

// 新增排班规则
export function addSkdRule(data) {
  return request({
    url: '/sms/skdRule',
    method: 'post',
    data: data
  })
}

// 修改排班规则
export function updateSkdRule(data) {
  return request({
    url: '/sms/skdRule',
    method: 'put',
    data: data
  })
}

// 删除排班规则
export function delSkdRule(id) {
  return request({
    url: '/sms/skdRule/' + id,
    method: 'delete'
  })
}
